package demo

import (
	"fmt"

	"github.com/gin-gonic/gin"
)

func Routers() {
	Router := gin.Default()
	api := Router.Group("api")
	ApiGroup(api)
	system := Router.Group("system")
	SystemGroup(system)
}

func ApiGroup(r *gin.RouterGroup) {
	r.GET("/user", func(c *gin.Context) {
		fmt.Println(c.Request.URL.Path)
	})
}

func SystemGroup(r *gin.RouterGroup) {
	r.POST("/user", func(c *gin.Context) {
		fmt.Println(c.Request.URL.Path)
	})
}
